﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace GolfSigma.Inventory.Model
{
    public class UpdateSearchRequest : IRequest
    {
        public Search Search { get; set; }

        public UpdateSearchRequest() { }
        public UpdateSearchRequest(Search search)
        {
            Search = search;
        }

        #region IRequest Members

        public string HttpVerb
        {
            get { return "PUT"; }
        }

        public string HttpPath
        {
            get { return "/search/" + Search.SearchId.ToString() + ".xml"; }
        }

        public IDictionary<string, string> HttpParameters
        {
            get { return Search.GetPostParamters(); }
        }

        public IDictionary<string, string> HttpHeaders
        {
            get { return null; }
        }

        #endregion
    }
}
